package utils

import (
	"encoding/json"

	"github.com/sirupsen/logrus"
)

func LogJson(o any) {
	bytes, err := json.Marshal(o)
	if err != nil {
		logrus.Errorf("错误：%v\n", err)
	}
	logrus.Info(string(bytes))
}
